package com.hjm.project.record.activityRecord.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;
import com.hjm.project.record.activityRecord.mapper.ActivityUpdateRecordMapper;
import com.hjm.project.record.activityRecord.domain.ActivityUpdateRecord;
import com.hjm.project.record.activityRecord.service.IActivityUpdateRecordService;
import com.hjm.common.utils.text.Convert;

import javax.annotation.Resource;

/**
 * 活动变更修改记录Service业务层处理
 * 
 * @author maker-platform
 * @date 2022-10-31
 */
@Service
public class ActivityUpdateRecordServiceImpl implements IActivityUpdateRecordService {
    @Resource
    private ActivityUpdateRecordMapper activityUpdateRecordMapper;

    /**
     * 查询活动变更修改记录
     * 
     * @param id 活动变更修改记录ID
     * @return 活动变更修改记录
     */
    @Override
    public ActivityUpdateRecord selectActivityUpdateRecordById(Integer id) {
        return activityUpdateRecordMapper.selectActivityUpdateRecordById(id);
    }

    /**
     * 获取批次号序列号
     *
     * @return 获取批次号序列号
     */
    @Override
    public long selectActivityBatch() {
        return activityUpdateRecordMapper.selectActivityBatch();
    }

    /**
     * 查询活动变更修改记录列表
     * 
     * @param activityUpdateRecord 活动变更修改记录
     * @return 活动变更修改记录
     */
    @Override
    public List<ActivityUpdateRecord> selectActivityUpdateRecordList(ActivityUpdateRecord activityUpdateRecord) {
        return activityUpdateRecordMapper.selectActivityUpdateRecordList(activityUpdateRecord);
    }

    /**
     * 查询活动变更修改记录详情
     *
     * @param activityUpdateRecord 活动变更修改记录
     * @return 活动变更修改记录
     */
    @Override
    public List<ActivityUpdateRecord> selectActivityUpdateRecordDetail(ActivityUpdateRecord activityUpdateRecord) {
        return activityUpdateRecordMapper.selectActivityUpdateRecordDetail(activityUpdateRecord);
    }

    /**
     * 查询活动变更修改记录列表
     *
     * @param activityUpdateRecord 活动变更修改记录
     * @return 活动变更修改记录 一个结果
     */
    @Override
    public ActivityUpdateRecord selectActivityUpdateRecordOne(ActivityUpdateRecord activityUpdateRecord) {
        return activityUpdateRecordMapper.selectActivityUpdateRecordOne(activityUpdateRecord);
    }

    /**
     * 新增活动变更修改记录
     * 
     * @param activityUpdateRecord 活动变更修改记录
     * @return 结果
     */
    @Override
    public int insertActivityUpdateRecord(ActivityUpdateRecord activityUpdateRecord) {
        return activityUpdateRecordMapper.insertActivityUpdateRecord(activityUpdateRecord);
    }

    /**
     * 修改活动变更修改记录
     * 
     * @param activityUpdateRecord 活动变更修改记录
     * @return 结果
     */
    @Override
    public int updateActivityUpdateRecord(ActivityUpdateRecord activityUpdateRecord) {
        return activityUpdateRecordMapper.updateActivityUpdateRecord(activityUpdateRecord);
    }

    /**
     * 删除活动变更修改记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteActivityUpdateRecordByIds(String ids) {
        return activityUpdateRecordMapper.deleteActivityUpdateRecordByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除活动变更修改记录信息
     * 
     * @param id 活动变更修改记录ID
     * @return 结果
     */
    @Override
    public int deleteActivityUpdateRecordById(Integer id) {
        return activityUpdateRecordMapper.deleteActivityUpdateRecordById(id);
    }
}
